package com.bbz.spring.bean;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

public class Fish {
    public Fish() {
        System.out.println("***********Constructor*****"+this.getClass().getName());
    }

    @PostConstruct
    public void init(){
        System.out.println(("************init*******"+this.getClass().getName()));
    }

    @PreDestroy
    public void destroy(){
        System.out.println("************destroy*****"+this.getClass().getName());
    }
}
